<!DocType html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
 <head>
  <meta content="text/html;charset=utf-8"/>
   <title>学生信息界面</title>
 </head>
 <script type="text/javascript" th:src="@{/js/selectstu.js}"></script>
 <body>
 <!-- <form action="http://localhost:8080/getStudents/selectStudent" method="get"> -->
  <table border="1">
   <tr id="table">
    <td><button onclick="as(this)">删除</button></td>
    <th>学生编号</th>
    <th>序号</th>
    <th>学生姓名</th>
    <th>学生性别</th>
    <th>学生年龄</th>
    <th>学生电话</th>
    <th>学生地址</th>
    <!-- <th>学生成绩</th> -->
    <th>操作</th>
   </tr>
   <tr th:each="student,studentStat:${list}">
    <td><input type="checkbox" id="cbox" name="cbox1" th:value="${student.sid}" /></td>
    <td th:text="${student.sid}" ></td>
    <td th:text="${studentStat.index}"></td>
    <td th:text="${student.sname}"></td>
    <td th:text="${student.sex}"></td>
    <td th:text="${student.age}"></td>
    <td th:text="${student.tell}"></td>
    <td th:text="${student.address}"></td>
    <!-- <td th:text="${student.kid}"></td> -->
    <td><button th:value="${stuent.sid}" th:id="${stuent.sid}" onclick="ad(this)">修改</button></td>
   </tr>
  </table>
  <!-- </form> -->
 </body>
</html>